package com.spzx.cart.api.impl;

import com.spzx.cart.api.RemoteCartService;
import com.spzx.cart.api.domain.CartInfo;
import com.spzx.common.core.domain.R;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class RemoteCartServiceFallback implements RemoteCartService {

    private static final Logger log = LoggerFactory.getLogger(RemoteCartServiceFallback.class);

    @Override
    public R<List<CartInfo>> getCartCheckedList(String header) {
        log.error("远程调用购物车服务:{}失败", "getCartCheckedList");
        return null;
    }

    @Override
    public R<Boolean> updateCartPrice(Long userId, String source) {
        log.error("更新购物车价格失败:{}失败", "updateCartPrice");
        return null;
    }

    @Override
    public R<Boolean> deleteCartCheckedList(Long userId, String source) {
        log.error("删除用户购物车选中数据:{}失败" + "deleteCartCheckedList");
        return null;
    }


}
